package com.fesine.ch02.throwExceptionNoLock;

/**
 * @Author: Fesine
 * @CreateDate:2016/6/29
 * @UpdateUser:修改人名称
 * @UpdateDate:2016/6/29
 * @UpdateRemark:修改具体的内容
 */
public class Test {
    public static void main(String[] args) {
        Service service = new Service();
        ThreadA a = new ThreadA(service);
        a.setName("a");
        a.start();
        try {
            Thread.sleep(500);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        ThreadB b = new ThreadB(service);
        b.setName("b");
        b.start();
    }
}
